package anonymouschat.client;

import java.security.PublicKey;
import java.util.ArrayList;
import java.util.HashMap;

import javax.crypto.Cipher;

import anonymouschat.service.serverEntry;
import anonymouschat.utils.*;
import anonymouschat.Identity;
import anonymouschat.NickList;
import anonymouschat.client.frames.ChatFrame;
import anonymouschat.client.frames.IDFrame;
import anonymouschat.client.frames.NickListFrame;
import anonymouschat.utils.ListOfServers;

/**
 * UI: Open ID selection scene on start up.
 * 
 * @author hb
 * 
 */
public class Client
{

    private Identity userID;

    private ChatFrame chatFrame;

    private NickListFrame nickListFrame;

    private NickList nickList;
    
    public static ArrayList<serverEntry> serverChain = new ArrayList<serverEntry>();
    
    public static ListOfServers ListOfAvailableServers = new ListOfServers();

    public Client() {
        new IDFrame( this );
    }

    public static void main( String[] args ) {
        new Client();
    }

    public Identity getIdentity() {
        return userID;
    }

    public void setUserID( Identity userID ) {
        this.userID = userID;
    }

    public ChatFrame getChatFrame() {
        return chatFrame;
    }

    public void setChatFrame( ChatFrame chatFrame ) {
        this.chatFrame = chatFrame;
    }

    public NickListFrame getNickListFrame() {
        return nickListFrame;
    }

    public void setNickListFrame( NickListFrame nickListFrame ) {
        this.nickListFrame = nickListFrame;
    }

    public NickList getNickList() {
        return nickList;
    }

    public void setNickList( NickList nickList ) {
        this.nickList = nickList;
    }

}
